import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/homePage/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/', //首页
      name: 'home',
      component: HomeView
    },
    {
      path: '/about', //中间mid页面
      name: 'about',
      component: () => import('@/views/aboutPage/AboutView.vue')
    },
    {
      path: '/mine', //我的页面
      name: 'mine',
      component: () => import('@/views/myPage/MyView.vue')
    },
    {
      path: '/calculator1', //计算器页面
      name: 'calculator1',
      component: () => import('@/views/midPage/calculator1.vue')
    },
    {
      path: '/propsemitStudy', //计算器页面
      name: 'propsemitStudy',
      component: () => import('@/views/midPage/propsemitStudy.vue')
    }
  ]
})

export default router
